<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

//
if( file_exists('stop.php') ) {
	include_once('stop.php');
}

//
require(dirname(dirname(__FILE__)) . '/includes/application_top.php');

//
$links = array('home', 'aboutus', 'contactus', 'support');
$adb->deleteA('pp_pages', "pages_link in ('" . implode("', '", $links) . "')");

//
foreach($links as $k => $v) {
	//base
	$d = array('pages_owner' => '1', 'pages_link' => $v, 'pages_name' => ucfirst($v));
	$adb->insertA('pp_pages', $d);
	//en_us
	//$d = array('pages_owner' => '1', 'pages_link' => $v, 'pages_name' => ucfirst($v));
	//$adb->insertA('pp_pages', $d);
	//zh_tw
	//$d = array('pages_owner' => '2', 'pages_link' => $v, 'pages_name' => ucfirst($v));
	//$adb->insertA('pp_pages', $d);
}

//
echo 'OK';
//
?>